﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="SearchResult.aspx.cs" Inherits="SearchResult" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        function clickButton(e, buttonid) {
            var evt = e ? e : window.event;
            var bt = document.getElementById(buttonid);
            if (bt) {
                var txt = $("#ContentPlaceHolder1_SearchText");
                if (evt.keyCode == 13 && txt.val() != "კომპანიის სახელი..." && txt.val() != "") {
                    bt.click(); return false;
                }
            }
        }
        $(document).ready(function () {
            $("#ContentPlaceHolder1_SearchBigButton").click(function (e) {
                var txt = $("#ContentPlaceHolder1_SearchText");
                if (txt.val() == "კომპანიის სახელი..." || txt.val() == "") { e.preventDefault(); }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <tr>
        <td class="center">
            <div class="all_content">
                <div class="search_big">
                    <asp:TextBox ID="SearchText" runat="server" type="text" name="text" value="კომპანიის სახელი..."
                        class="search_inside srchchg" onclick="if(this.value=='კომპანიის სახელი...') this.value='';"
                        onblur="if(this.value=='') this.value='კომპანიის სახელი...'" Style="color: #A8A8A8;"></asp:TextBox>
                    <asp:Button ID="SearchBigButton" runat="server" CssClass="bigsearch_button" OnClick="SearchBigButton_Click" />
                </div>
                <div class="content">
                    <div class="content-top">
                        <div class="content-bottom">
                            <div class="content-center">
                                <div class="cat_search_page">
                                    <div class="cat_search_left">
                                        <asp:Literal ID="AdvertisedCompanies" runat="server"></asp:Literal>
                                        <asp:Literal ID="NoSuchCompanies" runat="server"></asp:Literal>
                                        <asp:Repeater ID="SearchResultCompanies" runat="server" OnItemDataBound="SearchResultCompanies_ItemDataBound">
                                            <ItemTemplate>
                                                <div class="comp_block">
                                                    <div class="comp_cont">
                                                        <div class="result_com_name">
                                                            <a href="singlecompany.aspx?id=<%#Eval("CompanyID") %>">
                                                                <%#Eval("Name") %></a>
                                                        </div>
                                                        <div class="result_vote">
                                                            <span class="vote_img">
                                                                <div class="user_rat">
                                                                    <div class="outer-star">
                                                                        <asp:Literal ID="LitRatCalc" runat="server" />
                                                                    </div>
                                                                </div>
                                                            </span>
                                                            <asp:Literal ID="LitCompanyRating" runat="server" />
                                                            <span class="v_num">&nbsp;
                                                                <%#Eval("Rating") %></span>
                                                        </div>
                                                        <div class="res_addr">
                                                            <%#Eval("Address") %>
                                                            &nbsp;&nbsp;&nbsp;<%#Eval("Website") %>
                                                        </div>
                                                        <div class="rev_det">
                                                            <span class="sum_rev"><a href="#">განხილვა(<%#Eval("ReviewsCount") %>)</a> </span>
                                                            <span class="det_page"><a href="singlecompany.aspx?id=<%#Eval("CompanyID") %>">დეტალური
                                                                გვერდი</a> </span>
                                                        </div>
                                                    </div>
                                                    <div class="comp_res_img">
                                                        <a href="singlecompany.aspx?id=<%#Eval("CompanyID") %>">
                                                            <img src="upload/<%#Eval("Logo") %>" width="104" height="35" alt="Logo" /></a>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                        <div class="pagenation_l">
                                            <asp:PlaceHolder ID="pages" runat="server"></asp:PlaceHolder>
                                        </div>
                                        <!--End pagenation-->
                                    </div>
                                    <div class="cat_search_right">
                                        <div class="box_title">
                                            სორტირება</div>
                                        <div class="box_content">
                                            <div class="check_block">
                                                <!--list-->
                                                <div class="sort_box">
                                                    <a id="MostReviewed" onserverclick="MostReviewed_Click" runat="server" clientidmode="Static"
                                                        href="SearchResult.aspx?sortid=2"><span id="MostReviewedSpan" runat="server" class="uncheked">
                                                            &nbsp;</span> <span class="ch_text">ყველაზე განხილული</span> </a>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <!--list-->
                                                <div class="sort_box">
                                                    <a id="HighRating" onserverclick="HighRating_Click" runat="server" clientidmode="Static"
                                                        href="SearchResult.aspx?sortid=1"><span id="HighRatingSpan" runat="server" class="uncheked">
                                                            &nbsp;</span> <span class="ch_text">მაღალ რეიტინგული</span> </a>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="box_title">
                                            რეიტინგები</div>
                                        <div class="box_content">
                                            <div class="sort_box">
                                                <asp:ImageButton ID="Positive100" Width="72" Height="15" ImageUrl="images/5stars.png"
                                                    OnClick="Positive100_Click" runat="server" />
                                                <span>99%</span>
                                            </div>
                                            <div class="sort_box">
                                                <asp:ImageButton ID="Positive90" Width="72" Height="15" ImageUrl="images/4stars.png"
                                                    OnClick="Positive90_Click" runat="server" />
                                                <span>90% და მეტი</span>
                                            </div>
                                            <div class="sort_box">
                                                <asp:ImageButton ID="Positive70" Width="72" Height="15" ImageUrl="images/3stars.png"
                                                    OnClick="Positive70_Click" runat="server" />
                                                <span>70% და მეტი</span>
                                            </div>
                                            <div class="sort_box">
                                                <asp:ImageButton ID="Positive50" Width="72" Height="15" ImageUrl="images/2stars.png"
                                                    OnClick="Positive50_Click" runat="server" />
                                                <span>50& - და მეტი</span>
                                            </div>
                                            <div class="sort_box">
                                                <asp:LinkButton ID="ShowAllPositive" Width="72" Height="15" OnClick="ShowAllPositive_Click"
                                                    runat="server" Text="ფილტრის მოხსნა" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </td>
    </tr>
</asp:Content>
